<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>QCNSim: ConstantRateTrafficGenerator Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">QCNSim
   </div>
   <div id="projectbrief">Simulator for Quake-Catcher Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="class_constant_rate_traffic_generator-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ConstantRateTrafficGenerator Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_constant_rate_traffic_generator.html" title="ConstantRateTrafficGenerator class. ">ConstantRateTrafficGenerator</a> class.  
 <a href="class_constant_rate_traffic_generator.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_constant_rate_traffic_generator_8h_source.html">ConstantRateTrafficGenerator.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ConstantRateTrafficGenerator:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_constant_rate_traffic_generator.png" usemap="#ConstantRateTrafficGenerator_map" alt=""/>
  <map id="ConstantRateTrafficGenerator_map" name="ConstantRateTrafficGenerator_map">
<area href="class_traffic_generator.html" title="TrafficGenerator parent class. " alt="TrafficGenerator" shape="rect" coords="0,56,180,80"/>
<area href="class_entity.html" title="Entity class. " alt="Entity" shape="rect" coords="0,0,180,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab4955896e6cceda03ed77653d8a283c7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_constant_rate_traffic_generator.html#ab4955896e6cceda03ed77653d8a283c7">ConstantRateTrafficGenerator</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;<a class="el" href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">simulatorGlobals</a>, <a class="el" href="class_scheduler.html">Scheduler</a> &amp;<a class="el" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>, <a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="el" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a>, int <a class="el" href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">priority</a>, double <a class="el" href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">interval</a>)</td></tr>
<tr class="separator:ab4955896e6cceda03ed77653d8a283c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12c5f412fa2a63b5d45439d039d84a5b"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_constant_rate_traffic_generator.html#a12c5f412fa2a63b5d45439d039d84a5b">createInstanceTrafficEvent</a> () override</td></tr>
<tr class="separator:a12c5f412fa2a63b5d45439d039d84a5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d596b39286a156a6d358e7cbcc21325"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_constant_rate_traffic_generator.html#a1d596b39286a156a6d358e7cbcc21325">createInstanceTrafficEvent</a> (std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>) override</td></tr>
<tr class="separator:a1d596b39286a156a6d358e7cbcc21325"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae603eb13ba7f1f56bcb766b3278b104f"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_constant_rate_traffic_generator.html#ae603eb13ba7f1f56bcb766b3278b104f">createInstanceTrafficEvent</a> (std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute) override</td></tr>
<tr class="separator:ae603eb13ba7f1f56bcb766b3278b104f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af47f4ab3ce080b0322953fe855410830"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_constant_rate_traffic_generator.html#af47f4ab3ce080b0322953fe855410830">createInstanceTrafficEvent</a> (std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt; explicitRoute) override</td></tr>
<tr class="separator:af47f4ab3ce080b0322953fe855410830"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a81c19b372ba404117f35e552bebe08"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_constant_rate_traffic_generator.html#a0a81c19b372ba404117f35e552bebe08">getInterval</a> () const </td></tr>
<tr class="separator:a0a81c19b372ba404117f35e552bebe08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_traffic_generator"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_traffic_generator')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_traffic_generator.html">TrafficGenerator</a></td></tr>
<tr class="memitem:aad024e020fac17dbee74f0da16707df1 inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#aad024e020fac17dbee74f0da16707df1">turnOn</a> ()</td></tr>
<tr class="separator:aad024e020fac17dbee74f0da16707df1 inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1aeb5d90d269a1d1ac5316522b5233e inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#af1aeb5d90d269a1d1ac5316522b5233e">turnOff</a> ()</td></tr>
<tr class="separator:af1aeb5d90d269a1d1ac5316522b5233e inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8c16ee901079f8279fafd7411098cbd inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#ac8c16ee901079f8279fafd7411098cbd">setTokenContents</a> (std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>)</td></tr>
<tr class="separator:ac8c16ee901079f8279fafd7411098cbd inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9b21f5739748fadede79c7e4fa35ed7 inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#ab9b21f5739748fadede79c7e4fa35ed7">getTokensGeneratedCount</a> () const </td></tr>
<tr class="separator:ab9b21f5739748fadede79c7e4fa35ed7 inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac97d2e786e7c91117fbf590988eefd04 inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#ac97d2e786e7c91117fbf590988eefd04">getEventType</a> () const </td></tr>
<tr class="separator:ac97d2e786e7c91117fbf590988eefd04 inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9c53b70da6a733cb0723282b291b25f inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#aa9c53b70da6a733cb0723282b291b25f">setEventType</a> (<a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="el" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>)</td></tr>
<tr class="separator:aa9c53b70da6a733cb0723282b291b25f inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f71664ca8b268773234c1538539bebf inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a3f71664ca8b268773234c1538539bebf">getTokenContents</a> () const </td></tr>
<tr class="separator:a3f71664ca8b268773234c1538539bebf inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2247f62c33cf0875f423b58403af7042 inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a2247f62c33cf0875f423b58403af7042">getSource</a> () const </td></tr>
<tr class="separator:a2247f62c33cf0875f423b58403af7042 inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5c0ccdbf176c8aadd4b1bc7771ea326 inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#ad5c0ccdbf176c8aadd4b1bc7771ea326">setSource</a> (std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a>)</td></tr>
<tr class="separator:ad5c0ccdbf176c8aadd4b1bc7771ea326 inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb89d1eefa73ddf5ea95167bd9245b48 inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#abb89d1eefa73ddf5ea95167bd9245b48">getDestination</a> () const </td></tr>
<tr class="separator:abb89d1eefa73ddf5ea95167bd9245b48 inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9984034478b838d1f09d275e297f3309 inherit pub_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a9984034478b838d1f09d275e297f3309">setDestination</a> (std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a>)</td></tr>
<tr class="separator:a9984034478b838d1f09d275e297f3309 inherit pub_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_entity"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_entity')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_entity.html">Entity</a></td></tr>
<tr class="memitem:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_entity.html#ac2da1e8a32161accc56f39ac52cebd86">~Entity</a> ()=0</td></tr>
<tr class="memdesc:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="mdescLeft">&#160;</td><td class="mdescRight">Make this abstract (pure virtual), cannot be instantiated.  <a href="#ac2da1e8a32161accc56f39ac52cebd86">More...</a><br/></td></tr>
<tr class="separator:ac2da1e8a32161accc56f39ac52cebd86 inherit pub_methods_class_entity"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a432ffa3b53a793e6829f71fffc06c3ea"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">interval</a></td></tr>
<tr class="memdesc:a432ffa3b53a793e6829f71fffc06c3ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fixed, constant time interval for this generator.  <a href="#a432ffa3b53a793e6829f71fffc06c3ea">More...</a><br/></td></tr>
<tr class="separator:a432ffa3b53a793e6829f71fffc06c3ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_class_traffic_generator"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_class_traffic_generator')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="class_traffic_generator.html">TrafficGenerator</a></td></tr>
<tr class="memitem:a6fcdb1ce1b3fb4f35c021ea8b99f6cf5 inherit pro_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a6fcdb1ce1b3fb4f35c021ea8b99f6cf5">TrafficGenerator</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;<a class="el" href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">simulatorGlobals</a>, <a class="el" href="class_scheduler.html">Scheduler</a> &amp;<a class="el" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>, <a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="el" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a>, int <a class="el" href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">priority</a>)</td></tr>
<tr class="separator:a6fcdb1ce1b3fb4f35c021ea8b99f6cf5 inherit pro_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa805566ed505ad0f90982610bcf3869a inherit pro_methods_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#aa805566ed505ad0f90982610bcf3869a">TrafficGenerator</a> (<a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;<a class="el" href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">simulatorGlobals</a>, <a class="el" href="class_scheduler.html">Scheduler</a> &amp;<a class="el" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>, <a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> <a class="el" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a>, std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt; <a class="el" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a>, int <a class="el" href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">priority</a>, unsigned int seed)</td></tr>
<tr class="separator:aa805566ed505ad0f90982610bcf3869a inherit pro_methods_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_traffic_generator"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_traffic_generator')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_traffic_generator.html">TrafficGenerator</a></td></tr>
<tr class="memitem:a9569cd494b926b84f384c7380349d51a inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_scheduler.html">Scheduler</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a></td></tr>
<tr class="memdesc:a9569cd494b926b84f384c7380349d51a inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference to <a class="el" href="class_scheduler.html" title="Scheduler class. ">Scheduler</a> object, such that traffic generators may schedule their events.  <a href="#a9569cd494b926b84f384c7380349d51a">More...</a><br/></td></tr>
<tr class="separator:a9569cd494b926b84f384c7380349d51a inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42261ccf207f61a401473a106bc0bae3 inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a42261ccf207f61a401473a106bc0bae3">simulatorGlobals</a></td></tr>
<tr class="memdesc:a42261ccf207f61a401473a106bc0bae3 inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference to <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object, to get random generator info.  <a href="#a42261ccf207f61a401473a106bc0bae3">More...</a><br/></td></tr>
<tr class="separator:a42261ccf207f61a401473a106bc0bae3 inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84eef27cdbfa66bbf8c14e0128196a62 inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a></td></tr>
<tr class="memdesc:a84eef27cdbfa66bbf8c14e0128196a62 inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_event.html" title="Event class. ">Event</a> type that this generator will produce.  <a href="#a84eef27cdbfa66bbf8c14e0128196a62">More...</a><br/></td></tr>
<tr class="separator:a84eef27cdbfa66bbf8c14e0128196a62 inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb5d8009cf49ff99a6fee75ec456e166 inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a></td></tr>
<tr class="memdesc:acb5d8009cf49ff99a6fee75ec456e166 inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference to <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object that will be carried by the token.  <a href="#acb5d8009cf49ff99a6fee75ec456e166">More...</a><br/></td></tr>
<tr class="separator:acb5d8009cf49ff99a6fee75ec456e166 inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f69b85034831c2c40e789b0c0e11511 inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a></td></tr>
<tr class="memdesc:a4f69b85034831c2c40e789b0c0e11511 inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_entity.html" title="Entity class. ">Entity</a> to which the generator is attached (to which tokens are generated).  <a href="#a4f69b85034831c2c40e789b0c0e11511">More...</a><br/></td></tr>
<tr class="separator:a4f69b85034831c2c40e789b0c0e11511 inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ba09ea9c5df93de64af75886df0b11b inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a></td></tr>
<tr class="memdesc:a6ba09ea9c5df93de64af75886df0b11b inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destination entity, to which the generated tokens will be sent.  <a href="#a6ba09ea9c5df93de64af75886df0b11b">More...</a><br/></td></tr>
<tr class="separator:a6ba09ea9c5df93de64af75886df0b11b inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2158c9e714171e5a04032571021b23c4 inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">priority</a></td></tr>
<tr class="memdesc:a2158c9e714171e5a04032571021b23c4 inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_token.html" title="Token class. ">Token</a> priority. Higher priority, higher number.  <a href="#a2158c9e714171e5a04032571021b23c4">More...</a><br/></td></tr>
<tr class="separator:a2158c9e714171e5a04032571021b23c4 inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaa73cfc4e885ecfeecbe894efd232493 inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#aaa73cfc4e885ecfeecbe894efd232493">isOn</a></td></tr>
<tr class="memdesc:aaa73cfc4e885ecfeecbe894efd232493 inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if generator is on (and generating traffic); false if generator is off.  <a href="#aaa73cfc4e885ecfeecbe894efd232493">More...</a><br/></td></tr>
<tr class="separator:aaa73cfc4e885ecfeecbe894efd232493 inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29c9cdcb113742700e3f7fcbcb7ee325 inherit pro_attribs_class_traffic_generator"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_traffic_generator.html#a29c9cdcb113742700e3f7fcbcb7ee325">tokensGeneratedCount</a></td></tr>
<tr class="memdesc:a29c9cdcb113742700e3f7fcbcb7ee325 inherit pro_attribs_class_traffic_generator"><td class="mdescLeft">&#160;</td><td class="mdescRight">Count of tokens (events) generated by this traffic generator.  <a href="#a29c9cdcb113742700e3f7fcbcb7ee325">More...</a><br/></td></tr>
<tr class="separator:a29c9cdcb113742700e3f7fcbcb7ee325 inherit pro_attribs_class_traffic_generator"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_constant_rate_traffic_generator.html" title="ConstantRateTrafficGenerator class. ">ConstantRateTrafficGenerator</a> class. </p>
<dl class="section author"><dt>Author</dt><dd>Marcos Portnoi </dd></dl>
<dl class="section date"><dt>Date</dt><dd>August 2013</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2013 University of Delaware. </dd>
<dd>
QCNSim uses elements of TARVOS simulator, Copyright (C) 2005, 2006, 2007 Marcos Portnoi. </dd></dl>
<dl class="section user"><dt></dt><dd>This file is part of QCNSim. QCNSim is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br/>
 QCNSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.<br/>
 You should have received a copy of the GNU Lesser General Public License along with QCNSim. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </dd></dl>
<dl class="section user"><dt>Description</dt><dd>This class implements a constant-rate traffic generator (or a CBR - Constant Bit Rate generator). Events generated from this class will be distributed in time according to a constant, fixed number. </dd></dl>

<p>Definition at line <a class="el" href="_constant_rate_traffic_generator_8h_source.html#l00034">34</a> of file <a class="el" href="_constant_rate_traffic_generator_8h_source.html">ConstantRateTrafficGenerator.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab4955896e6cceda03ed77653d8a283c7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ConstantRateTrafficGenerator::ConstantRateTrafficGenerator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;&#160;</td>
          <td class="paramname"><em>simulatorGlobals</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_scheduler.html">Scheduler</a> &amp;&#160;</td>
          <td class="paramname"><em>scheduler</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a>&#160;</td>
          <td class="paramname"><em>eventType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>tokenContents</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>destination</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>interval</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section author"><dt>Author</dt><dd>Marcos Portnoi </dd></dl>
<dl class="section date"><dt>Date</dt><dd>August 2013</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2013 University of Delaware. </dd>
<dd>
QCNSim uses elements of TARVOS simulator, Copyright (C) 2005, 2006, 2007 Marcos Portnoi. </dd></dl>
<dl class="section user"><dt></dt><dd>This file is part of QCNSim. QCNSim is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br/>
 QCNSim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.<br/>
 You should have received a copy of the GNU Lesser General Public License along with QCNSim. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. Constructor with parameter.</dd></dl>
<p>Since this is a constant-rate traffic generator, there is no need for random numbers, nor seed. Therefore, there is really no need to use <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object; however, we need to request it to pass to <a class="el" href="class_traffic_generator.html" title="TrafficGenerator parent class. ">TrafficGenerator</a> constructor, since it uses a reference to this object.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">simulatorGlobals</td><td>Reference to <a class="el" href="class_simulator_globals.html" title="Simulator-scope variables and parameters. ">SimulatorGlobals</a> object, necessary to fullfil TraffiGenerator constructor reference parameter. </td></tr>
    <tr><td class="paramname">scheduler</td><td>Reference to <a class="el" href="class_scheduler.html" title="Scheduler class. ">Scheduler</a> object, such that traffic generators may schedule their events. </td></tr>
    <tr><td class="paramname">eventType</td><td><a class="el" href="class_event.html" title="Event class. ">Event</a> type that this generator will produce. </td></tr>
    <tr><td class="paramname">tokenContents</td><td>Reference to <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object that will be carried by the token. </td></tr>
    <tr><td class="paramname">source</td><td><a class="el" href="class_entity.html" title="Entity class. ">Entity</a> to which the generator is attached (to which tokens are generated). </td></tr>
    <tr><td class="paramname">destination</td><td>Destination entity, to which the generated tokens will be sent. </td></tr>
    <tr><td class="paramname">priority</td><td><a class="el" href="class_token.html" title="Token class. ">Token</a> priority. Higher priority, higher number. </td></tr>
    <tr><td class="paramname">interval</td><td>Fixed, constant time interval for this generator. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_constant_rate_traffic_generator_8cpp_source.html#l00038">38</a> of file <a class="el" href="_constant_rate_traffic_generator_8cpp_source.html">ConstantRateTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;                                                                                                       : <a class="code" href="class_traffic_generator.html#a6fcdb1ce1b3fb4f35c021ea8b99f6cf5">TrafficGenerator</a>(simulatorGlobals, scheduler, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, <a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>,</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        <a class="code" href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">source</a>, <a class="code" href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">destination</a>, <a class="code" href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">priority</a>), <a class="code" href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">interval</a>(<a class="code" href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">interval</a>) {</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;}</div>
<div class="ttc" id="class_traffic_generator_html_a6fcdb1ce1b3fb4f35c021ea8b99f6cf5"><div class="ttname"><a href="class_traffic_generator.html#a6fcdb1ce1b3fb4f35c021ea8b99f6cf5">TrafficGenerator::TrafficGenerator</a></div><div class="ttdeci">TrafficGenerator(SimulatorGlobals &amp;simulatorGlobals, Scheduler &amp;scheduler, EventType eventType, std::shared_ptr&lt; Entity &gt; tokenContents, std::shared_ptr&lt; Entity &gt; source, std::shared_ptr&lt; Entity &gt; destination, int priority)</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00037">TrafficGenerator.cpp:37</a></div></div>
<div class="ttc" id="class_constant_rate_traffic_generator_html_a432ffa3b53a793e6829f71fffc06c3ea"><div class="ttname"><a href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">ConstantRateTrafficGenerator::interval</a></div><div class="ttdeci">double interval</div><div class="ttdoc">Fixed, constant time interval for this generator. </div><div class="ttdef"><b>Definition:</b> <a href="_constant_rate_traffic_generator_8h_source.html#l00036">ConstantRateTrafficGenerator.h:36</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_acb5d8009cf49ff99a6fee75ec456e166"><div class="ttname"><a href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">TrafficGenerator::tokenContents</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; tokenContents</div><div class="ttdoc">Reference to Entity object that will be carried by the token. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00046">TrafficGenerator.h:46</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a2158c9e714171e5a04032571021b23c4"><div class="ttname"><a href="class_traffic_generator.html#a2158c9e714171e5a04032571021b23c4">TrafficGenerator::priority</a></div><div class="ttdeci">int priority</div><div class="ttdoc">Token priority. Higher priority, higher number. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00049">TrafficGenerator.h:49</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a4f69b85034831c2c40e789b0c0e11511"><div class="ttname"><a href="class_traffic_generator.html#a4f69b85034831c2c40e789b0c0e11511">TrafficGenerator::source</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; source</div><div class="ttdoc">Entity to which the generator is attached (to which tokens are generated). </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00047">TrafficGenerator.h:47</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a6ba09ea9c5df93de64af75886df0b11b"><div class="ttname"><a href="class_traffic_generator.html#a6ba09ea9c5df93de64af75886df0b11b">TrafficGenerator::destination</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; destination</div><div class="ttdoc">Destination entity, to which the generated tokens will be sent. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00048">TrafficGenerator.h:48</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a12c5f412fa2a63b5d45439d039d84a5b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt; ConstantRateTrafficGenerator::createInstanceTrafficEvent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Creates an instance of constant rate traffic event.</p>
<p>Calls parent function and complements with event generation. Uses member variable tokenContents.</p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_token.html" title="Token class. ">Token</a> that was generated, per the class constructor parameters and if generator is On. Otherwise, returns NULL. </dd></dl>

<p>Implements <a class="el" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator</a>.</p>

<p>Definition at line <a class="el" href="_constant_rate_traffic_generator_8cpp_source.html#l00052">52</a> of file <a class="el" href="_constant_rate_traffic_generator_8cpp_source.html">ConstantRateTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;                                                                              {</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>();</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordflow">if</span> (token != NULL) {</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(<a class="code" href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">interval</a>, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    }</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;}</div>
<div class="ttc" id="class_event_html"><div class="ttname"><a href="class_event.html">Event</a></div><div class="ttdoc">Event class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00035">Event.h:35</a></div></div>
<div class="ttc" id="class_constant_rate_traffic_generator_html_a432ffa3b53a793e6829f71fffc06c3ea"><div class="ttname"><a href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">ConstantRateTrafficGenerator::interval</a></div><div class="ttdeci">double interval</div><div class="ttdoc">Fixed, constant time interval for this generator. </div><div class="ttdef"><b>Definition:</b> <a href="_constant_rate_traffic_generator_8h_source.html#l00036">ConstantRateTrafficGenerator.h:36</a></div></div>
<div class="ttc" id="class_scheduler_html_ae84f19f548d606f50fba69d00fe691b1"><div class="ttname"><a href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">Scheduler::schedule</a></div><div class="ttdeci">void schedule(const Event &amp;event)</div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8cpp_source.html#l00056">Scheduler.cpp:56</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a1c68df7f3572cb0cbbac0b70d6bdd38f"><div class="ttname"><a href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent()=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00074">TrafficGenerator.cpp:74</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00043">TrafficGenerator.h:43</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a1d596b39286a156a6d358e7cbcc21325"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt; ConstantRateTrafficGenerator::createInstanceTrafficEvent </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>tokenContents</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Creates an instance of constant rate traffic event.</p>
<p>Calls parent function and complements with event generation and exponential random variate. Uses parameter tokenContents.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tokenContents</td><td>Reference to <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object that will be carried by the token.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_token.html" title="Token class. ">Token</a> that was generated, per the class constructor parameters and if generator is On. Otherwise, returns NULL. </dd></dl>

<p>Implements <a class="el" href="class_traffic_generator.html#a91a4d92d755dc066face0f02e20e33cd">TrafficGenerator</a>.</p>

<p>Definition at line <a class="el" href="_constant_rate_traffic_generator_8cpp_source.html#l00072">72</a> of file <a class="el" href="_constant_rate_traffic_generator_8cpp_source.html">ConstantRateTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;                                                                                                                 {</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>(<a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    <span class="keywordflow">if</span> (token != NULL) {</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(<a class="code" href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">interval</a>, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    }</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;}</div>
<div class="ttc" id="class_event_html"><div class="ttname"><a href="class_event.html">Event</a></div><div class="ttdoc">Event class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00035">Event.h:35</a></div></div>
<div class="ttc" id="class_constant_rate_traffic_generator_html_a432ffa3b53a793e6829f71fffc06c3ea"><div class="ttname"><a href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">ConstantRateTrafficGenerator::interval</a></div><div class="ttdeci">double interval</div><div class="ttdoc">Fixed, constant time interval for this generator. </div><div class="ttdef"><b>Definition:</b> <a href="_constant_rate_traffic_generator_8h_source.html#l00036">ConstantRateTrafficGenerator.h:36</a></div></div>
<div class="ttc" id="class_scheduler_html_ae84f19f548d606f50fba69d00fe691b1"><div class="ttname"><a href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">Scheduler::schedule</a></div><div class="ttdeci">void schedule(const Event &amp;event)</div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8cpp_source.html#l00056">Scheduler.cpp:56</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_acb5d8009cf49ff99a6fee75ec456e166"><div class="ttname"><a href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">TrafficGenerator::tokenContents</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; tokenContents</div><div class="ttdoc">Reference to Entity object that will be carried by the token. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00046">TrafficGenerator.h:46</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a1c68df7f3572cb0cbbac0b70d6bdd38f"><div class="ttname"><a href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent()=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00074">TrafficGenerator.cpp:74</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00043">TrafficGenerator.h:43</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ae603eb13ba7f1f56bcb766b3278b104f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt; ConstantRateTrafficGenerator::createInstanceTrafficEvent </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>explicitRoute</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Creates an instance of constant rate traffic event.</p>
<p>Calls parent function and complements with event generation. Uses member variable tokenContents and parameter explicit route.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">explicitRoute</td><td>Vector containing a list of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> objects representing the route to be followed by a token/PDU.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_token.html" title="Token class. ">Token</a> that was generated, per the class constructor parameters and if generator is On. Otherwise, returns NULL. </dd></dl>

<p>Implements <a class="el" href="class_traffic_generator.html#affffde5231f4a7411b154a43cf06da2f">TrafficGenerator</a>.</p>

<p>Definition at line <a class="el" href="_constant_rate_traffic_generator_8cpp_source.html#l00092">92</a> of file <a class="el" href="_constant_rate_traffic_generator_8cpp_source.html">ConstantRateTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;                                                                                                                            {</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>(explicitRoute);</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordflow">if</span> (token != NULL) {</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(<a class="code" href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">interval</a>, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    }</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;}</div>
<div class="ttc" id="class_event_html"><div class="ttname"><a href="class_event.html">Event</a></div><div class="ttdoc">Event class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00035">Event.h:35</a></div></div>
<div class="ttc" id="class_constant_rate_traffic_generator_html_a432ffa3b53a793e6829f71fffc06c3ea"><div class="ttname"><a href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">ConstantRateTrafficGenerator::interval</a></div><div class="ttdeci">double interval</div><div class="ttdoc">Fixed, constant time interval for this generator. </div><div class="ttdef"><b>Definition:</b> <a href="_constant_rate_traffic_generator_8h_source.html#l00036">ConstantRateTrafficGenerator.h:36</a></div></div>
<div class="ttc" id="class_scheduler_html_ae84f19f548d606f50fba69d00fe691b1"><div class="ttname"><a href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">Scheduler::schedule</a></div><div class="ttdeci">void schedule(const Event &amp;event)</div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8cpp_source.html#l00056">Scheduler.cpp:56</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a1c68df7f3572cb0cbbac0b70d6bdd38f"><div class="ttname"><a href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent()=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00074">TrafficGenerator.cpp:74</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00043">TrafficGenerator.h:43</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="af47f4ab3ce080b0322953fe855410830"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="class_token.html">Token</a> &gt; ConstantRateTrafficGenerator::createInstanceTrafficEvent </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&#160;</td>
          <td class="paramname"><em>tokenContents</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="class_entity.html">Entity</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>explicitRoute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Creates an instance of constant rate traffic event.</p>
<p>Calls parent function and complements with event generation and exponential random variate. Uses parameter tokenContents and parameter explicit route.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tokenContents</td><td>Reference to <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> object that will be carried by the token. </td></tr>
    <tr><td class="paramname">explicitRoute</td><td>Vector containing a list of <a class="el" href="class_entity.html" title="Entity class. ">Entity</a> objects representing the route to be followed by a token/PDU.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_token.html" title="Token class. ">Token</a> that was generated, per the class constructor parameters and if generator is On. Otherwise, returns NULL. </dd></dl>

<p>Implements <a class="el" href="class_traffic_generator.html#a0b2ad79508cd35ada22d52c504547405">TrafficGenerator</a>.</p>

<p>Definition at line <a class="el" href="_constant_rate_traffic_generator_8cpp_source.html#l00113">113</a> of file <a class="el" href="_constant_rate_traffic_generator_8cpp_source.html">ConstantRateTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;                                                                                                                                                                 {</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a>(<a class="code" href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">tokenContents</a>, explicitRoute);</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="keywordflow">if</span> (token != NULL) {</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(<a class="code" href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">interval</a>, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    }</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;}</div>
<div class="ttc" id="class_event_html"><div class="ttname"><a href="class_event.html">Event</a></div><div class="ttdoc">Event class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00035">Event.h:35</a></div></div>
<div class="ttc" id="class_constant_rate_traffic_generator_html_a432ffa3b53a793e6829f71fffc06c3ea"><div class="ttname"><a href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">ConstantRateTrafficGenerator::interval</a></div><div class="ttdeci">double interval</div><div class="ttdoc">Fixed, constant time interval for this generator. </div><div class="ttdef"><b>Definition:</b> <a href="_constant_rate_traffic_generator_8h_source.html#l00036">ConstantRateTrafficGenerator.h:36</a></div></div>
<div class="ttc" id="class_scheduler_html_ae84f19f548d606f50fba69d00fe691b1"><div class="ttname"><a href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">Scheduler::schedule</a></div><div class="ttdeci">void schedule(const Event &amp;event)</div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8cpp_source.html#l00056">Scheduler.cpp:56</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00045">TrafficGenerator.h:45</a></div></div>
<div class="ttc" id="class_traffic_generator_html_acb5d8009cf49ff99a6fee75ec456e166"><div class="ttname"><a href="class_traffic_generator.html#acb5d8009cf49ff99a6fee75ec456e166">TrafficGenerator::tokenContents</a></div><div class="ttdeci">std::shared_ptr&lt; Entity &gt; tokenContents</div><div class="ttdoc">Reference to Entity object that will be carried by the token. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00046">TrafficGenerator.h:46</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a1c68df7f3572cb0cbbac0b70d6bdd38f"><div class="ttname"><a href="class_traffic_generator.html#a1c68df7f3572cb0cbbac0b70d6bdd38f">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent()=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00074">TrafficGenerator.cpp:74</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00043">TrafficGenerator.h:43</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a0a81c19b372ba404117f35e552bebe08"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double ConstantRateTrafficGenerator::getInterval </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns interval (constant time interval between events).</p>
<dl class="section return"><dt>Returns</dt><dd>Interval. </dd></dl>

<p>Definition at line <a class="el" href="_constant_rate_traffic_generator_8cpp_source.html#l00127">127</a> of file <a class="el" href="_constant_rate_traffic_generator_8cpp_source.html">ConstantRateTrafficGenerator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;                                                       {</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">interval</a>;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;}</div>
<div class="ttc" id="class_constant_rate_traffic_generator_html_a432ffa3b53a793e6829f71fffc06c3ea"><div class="ttname"><a href="class_constant_rate_traffic_generator.html#a432ffa3b53a793e6829f71fffc06c3ea">ConstantRateTrafficGenerator::interval</a></div><div class="ttdeci">double interval</div><div class="ttdoc">Fixed, constant time interval for this generator. </div><div class="ttdef"><b>Definition:</b> <a href="_constant_rate_traffic_generator_8h_source.html#l00036">ConstantRateTrafficGenerator.h:36</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a432ffa3b53a793e6829f71fffc06c3ea"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double ConstantRateTrafficGenerator::interval</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Fixed, constant time interval for this generator. </p>

<p>Definition at line <a class="el" href="_constant_rate_traffic_generator_8h_source.html#l00036">36</a> of file <a class="el" href="_constant_rate_traffic_generator_8h_source.html">ConstantRateTrafficGenerator.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>QcnSim/<a class="el" href="_constant_rate_traffic_generator_8h_source.html">ConstantRateTrafficGenerator.h</a></li>
<li>QcnSim/<a class="el" href="_constant_rate_traffic_generator_8cpp_source.html">ConstantRateTrafficGenerator.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Nov 14 2013 11:18:22 for QCNSim by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
